

#ifndef GUI_MATH_H__
#define GUI_MATH_H__

#include <stdint.h> 

#define MATH_DEVIDER        (1 << 20)

#define NORMALIZE           (32768) 


#ifndef GUI_MATH_ABS
#define GUI_MATH_ABS(x)     ((x) > 0 ? (x) : (-x))
#endif 

int32_t math_sin(int degree);

int32_t math_cos(int degree);


int lv_trigo_sin(int angle); 


char gui_hex2ascii(uint8_t hex);

int gui_findCharIndex(char c);

int find_min(int a, int b, int c, int d);

int find_max(int a, int b, int c ,int d); 

int gui_conv_format(char* s, const char* fmt, ...); 

int gui_get_unicode_string_len(uint16_t* unicodes); 

#endif 
